<!doctype html>
<html>
@include('top.title')
<body>
@include('top.header')
@if(!empty(session('success')))
    <div id="tishi"
         style="background-color: #caeaca;position:absolute; margin:840px 2px 4px 1580px;width:300px;height: 24px;padding:10px;border-radius: 50px;">
        <span style="text-align: center;display:block;"> 提示信息：{{session('success')}}</span>
    </div>
@endif
<div class="mainContent">
    @include('top.menu')
    <form action="/" method="post">
        {{ csrf_field() }}
        <div class="blogitem">
            <span class="biaoti">标题：</span><input placeholder="例：php-warp配置步骤" class="shuru" type="type" name="title" required>
            <select class="leixing" name="classify">
                @foreach($classify as $k=>$v)
                <option value="{{$v['classify_id']}}">{{$v['name']}}</option>
                @endforeach
            </select>
            <button type="submit" class="shangchuang2">提交</button>
            @include('top.index')
        </div>
    </form>
</div>
@include('top.footer')
</body>
</html>